<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增工作模板')" />
    <th:block th:include="include :: luckysheet-plugins-css" />
</head>
<body class="white-bg">
    <div id="luckysheet" style="margin:0px;padding:0px;position:absolute;width:100%;height:100%;left: 0px;top: 0px;"></div>>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: luckysheet-plugins-js" />
    <script th:inline="javascript">
        var prefix = ctx + "work/template"
        var template = [[${workForm}]]

        $(function () {
            luckysheet.create({
                container: 'luckysheet', //luckysheet为容器id
                //title: template.templateName, // 设定表格名称
                lang: 'zh', // 设定表格语言
                allowEdit: true,//作用：是否允许前台编辑
                showinfobar: false,//作用：是否显示顶部信息栏
                data:  JSON.parse(template.formContent),
            })
        })
        
    </script>
</body>
</html>